﻿using System;

namespace Stack
{
    class Program
    {
        static void Main(string[] args)
        {

            System.Collections.Generic.Stack<int> st = new System.Collections.Generic.Stack<int>();
            System.Collections.Generic.Queue<int> qu = new System.Collections.Generic.Queue<int>();


            //ArrayStack<int> stack = new ArrayStack<int>();
            //for (int i = 0; i < 5; i++)
            //    stack.push(i);
            //Console.WriteLine(stack);
            //stack.pop();
            //Console.WriteLine(stack);

            //ArrayQueue<int> queue = new ArrayQueue<int>();
            //for (int i = 0; i < 5; i++)
            //    queue.enqueue(i);
            //Console.WriteLine(queue);
            //queue.dequeue();
            //Console.WriteLine(queue);


            LoopQueue<int> queue = new LoopQueue<int>();
            for (int i = 0; i < 10; i++)
                queue.enqueue(i);


            int res = queue.dequeue();

            Console.WriteLine(queue);

            //Console.WriteLine(new Solution().isVaild("(]"));
            //Console.ReadLine();
        }
    }
}
